package cn.openea.perpartner.meily.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.openea.perpartner.meily.web.entity.Provider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * (Provider)表数据库访问层
 *
 * @author Weird077
 * @since 2023-01-18 19:29:50
 */
public interface ProviderMapper extends BaseMapper<Provider> {


    /**
     * 补全区域服务商店铺类型数据，只使用一次
     * @param providerId
     * @param storeType
     */
    @Update("UPDATE meily_provider SET store_type = #{storeType} WHERE provider_id = #{providerId}")
    int complementsStoreType(@Param("providerId") String providerId,@Param("storeType") String storeType);
}

